package top.v5it.japi.plus.example.client.controller;

import cn.hutool.http.Method;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.v5it.japi.plus.sdk.JapiApi;

/**
 * @author zhanpu
 * @date 2022/6/23
 */
@RestController
@RequestMapping("/v1/client")
public class ExampleClientController {

    @JapiApi(method = Method.GET, resultType = TestExampleDTO.class, path = "${spring.japi.client.test.url}")
    @GetMapping("{id}/{name}")
    public TestExampleDTO test(@PathVariable("id") Integer id, @PathVariable("name") String name) {
        return null;
    }
}
